package com.situ.personal.pojo;

// 实体类和数据库中表是一一对应 domain entity
// pojo:plain ordinary java object
public class User {
	private Integer id;
	private String name;
	private Integer age;
	private String gender;
	private String password;
	private Integer type;

	public User() {
		super();
	}

	public User(String name, Integer age, String gender, String password, Integer type) {
		super();
		this.name = name;
		this.age = age;
		this.gender = gender;
		this.password = password;
		this.type = type;
	}

	public User(Integer id, String name, Integer age, String gender, String password, Integer type) {
		super();
		this.id = id;
		this.name = name;
		this.age = age;
		this.gender = gender;
		this.password = password;
		this.type = type;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Override
	public String toString() {
		return "User [id=" + id + ", name=" + name + ", age=" + age + ", gender=" + gender + ", password=" + password
				+ ", type=" + type + "]";
	}

}
